import request from '@/utils/request'

//列表查询
export function kolList(params) {
  return request({
    url: '/admin/kol/list',
    method: 'get',
    params,
  })
}

// 管理机构
export function treeSelect(params) {
  return request({
    url: '/admin/permission/treeSelect',
    method: 'get',
    params
  })
}

//创建人
export function permission(data) {
  return request({
    url: '/admin/permission',
    method: 'post',
    data,
  })
}

export function updateWeight(data) {
  return request({
    url: '/admin/kol/updateWeight',
    method: 'put',
    data,
  })
}

